// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './utils/router.js'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI, { size: 'small', zIndex: 3000 })
import 'normalize.css/normalize.css'
import Moment from 'moment'
Vue.prototype.$moment = Moment
import VCharts from 'v-charts'
Vue.use(VCharts)
import i18n from './i18n.js'  //引入vue i18n的注册文件【注册方法在对应文件内】

import utils from './utils/index.js'
Vue.prototype.$utils = utils

Vue.config.productionTip = false

import { Badge, Timeline, Modal, notification, Icon, Skeleton } from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
Vue.use(Badge)
Vue.use(Timeline)
Vue.use(Modal)
Vue.use(Icon)
Vue.use(Skeleton)
Vue.prototype.$notification = notification

import api from './api/index.js'
Vue.prototype.$api = api

import './mock'

console.log(i18n);
/* eslint-disable no-new */
new Vue({
  el: '#app',
  i18n,
  store,
  router,
  components: { App },
  template: '<App/>'
})
